<h1><%= "#{t(:listing)} #{t(:blood_types)}" %> </h1>

<table>
  <thead>
    <tr>
      <th><%= t :name %></th>
      <th><%= t :created_by %></th>
      <th><%= t :updated_by %></th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @blood_types.each do |blood_type| %>
      <tr>
        <td><%= blood_type.name %></td>
        <td><%= blood_type.created_by %></td>
        <td><%= blood_type.updated_by %></td>
        <td><%= link_to "#{t(:show)}", blood_type %></td>
        <td><%= link_to "#{t(:edit)}", edit_blood_type_path(blood_type) %></td>
        <td><%= link_to "#{t(:destroy)}", blood_type, method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to "#{t(:new_blood_type)}", new_blood_type_path %>
